package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2022-01-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("group")
public class Group extends Model<Group> {

    private static final long serialVersionUID=1L;

    /**
     * 学习小组id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属课程id
     */
    @TableField("cId")
    private String cId;

    /**
     * 学习小组名称
     */
    @TableField("gName")
    private String gName;


    public static final String ID = "id";

    public static final String CID = "cId";

    public static final String GNAME = "gName";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
